package com.qf.smsplatform.mapper;

import com.qf.smsplatform.pojo.TBlackList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*2021/10/25*/public interface BlackListMapper {

    @Select("select * from t_black_list where id=#{id}")
    TBlackList findBlackById(Long id);

    @Insert("insert into t_black_list (mobile,owntype,creater) values (#{mobile},#{owntype},#{creater})")
    void addBlack(TBlackList black);

    @Select("select * from t_black_list")
    List<TBlackList> selectAll();


    Integer deleteByIds(@Param("ids") List<Integer> ids, @Param("creater") Long creater);

    Integer deleteByAdmin(@Param("ids") List<Integer> ids);

    void updateBlack(TBlackList tBlackList);

    List<TBlackList> selectTBlackAndUser();

    List<TBlackList> selectByMultParams(TBlackList blackList);
}
